package com.gp.model.dto;

import java.io.Serializable;

import javax.validation.constraints.NotNull;

/**
 * @author: 弓成龙
 * @date : 2017年12月27日
 * @email : gcx909109@sina.cn
 * @description: 封装购物车中的商品
 */
public class ItemInfo implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 商品id
   */
  // @NotNull(message="{GOODS_ID_NULL}")
  private Long goodsId;

  /**
   * 商品名称
   */
  private String goodsName;

  /**
   * 商品图片集合
   */
  private String pic;

  /**
   * 商品价格
   */
  // @NotNull(message="{GOODS_PRICE_NULL}")
  private String price;

  /**
   * 商品数量
   */
  // @NotNull(message="{GOODS_NUMBER_NULL}")
  private Integer number;

  public Long getGoodsId() {
    return goodsId;
  }

  public void setGoodsId(Long goodsId) {
    this.goodsId = goodsId;
  }

  public String getGoodsName() {
    return goodsName;
  }

  public void setGoodsName(String goodsName) {
    this.goodsName = goodsName;
  }

  public static long getSerialversionuid() {
    return serialVersionUID;
  }

  public String getPrice() {
    return price;
  }

  public void setPrice(String price) {
    this.price = price;
  }

  public String getPic() {
    return pic;
  }

  public void setPic(String pic) {
    this.pic = pic;
  }

  @Override
  public String toString() {
    return "ItemInfo [goodsId=" + goodsId + ", goodsName=" + goodsName + ", pic=" + pic + ", price="
        + price + ", number=" + number + "]";
  }

  public Integer getNumber() {
    return number;
  }

  public void setNumber(Integer number) {
    this.number = number;
  }

}

